package com.eastfair.gateway.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.eastfair.annotation.annotation.cache.Cache;
import com.eastfair.annotation.annotation.cache.Magic;
import com.eastfair.boot.service.SuperCacheServiceImpl;
import com.eastfair.core.base.R;
import com.eastfair.core.context.ContextUtil;
import com.eastfair.core.model.CacheKeyBuilder;
import com.eastfair.gateway.dao.BackListMapper;
import com.eastfair.gateway.dto.BackListDTO;
import com.eastfair.gateway.entity.BackList;
import com.eastfair.gateway.service.BackListService;
import com.eastfair.gateway.service.GatewayService;
import com.eastfair.gateway.vo.BackListVO;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.StringUtils;
import org.checkerframework.checker.units.qual.A;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;

/**
 * <p>
 * 业务实现类
 * 黑名单
 * </p>
 *
 * @author ligang
 * @date 2022-07-30
 */
@Slf4j
@Service
public class GatewayServiceImpl implements GatewayService {

    @Autowired
    private BackListService backListService;

    @Override
    public List<BackList> queryBackList(BackListDTO backListDTO) {
        return backListService.listOfCache(backListDTO,null);
    }
}
